<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  <head>
    <base href="<%=basePath%>" />
    
    <title></title>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />	
	
	<link rel="stylesheet" href="css/style.css" type="text/css"></link>
	<link rel="stylesheet" href="css/style_.css" type="text/css"></link>
  	<script type="text/javascript" src="js/win_center.js"></script>
  	
<script type="text/javascript">	
function validate(){
	alert("回复成功！");
	this.window.close();
}
function vali(){
	alert("信件内容和题目不能为空！");
	this.window.close();
}
</script>
</head>
<s:if test="i!=0">
	<body onload="validate()">
	
	</body>
</s:if>
<s:else>
	<body onload="vali()">
	</body>
</s:else>

</html>
